package com.example.demo.control;

import com.alibaba.fastjson.JSON;
import com.example.demo.pojo.RunCount;
import com.example.demo.service.CStorOrderService;
import com.example.demo.service.RunCountServlet;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.xml.crypto.Data;
import java.util.List;

@ResponseBody
@Controller
public class RunCountControl {
    @Resource
    RunCountServlet runCountServlet;
    @PostMapping("/c/runcount/show")
    public String runCount(String data1){
      String a= runCountServlet.runcountshow(data1);
        System.out.println(a+"控制");
      return a;
    }
}
